package com.cnunicom.modules.tra.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.cnunicom.common.utils.JsonLongSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;

/**
 * 活动管理表
 *
 * @author dzygod
 * @email dingziyuan0@gmail.com
 * @date 2019-11-27 21:39:33
 */
@Data
@TableName("tra_activity")
public class ActivityEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "活动表id")
	@TableId
	private Integer id;

	@ApiModelProperty(value = "关联多单位id，以逗号分割")
	private String unitId;

	@ApiModelProperty(value = "活动名称")
	@NotBlank(message = "活动名称不能为空")
	private String name;

	@ApiModelProperty(value = "活动介绍")
	@NotBlank(message = "活动介绍不能为空")
	private String introduce;

	@ApiModelProperty(value = "状态  0：已激活  1：未激活")
	@Range(min = 0, max = 1,message = "状态超出边界")
	private Integer status;

	@ApiModelProperty("创建时间")
	private String createTime;

	@ApiModelProperty("逻辑删除")
	@TableLogic
	private String isDel;

	/**
	 *	关联单位
	 */
	private String def0;
	/**
	 *	注册时间
	 */
	private String def1;
	/**
	 *
	 */
	private String def2;
}
